#include "Point.h"
#include <iostream>
#include <cmath>
using namespace std;
Point::Point(int x, int y) : x(x), y(y){}
int Point::getX() const
{
	return x;
}
int Point::getY() const
{
	return y;
}
void Point::setX(int x)
{
	this->x = x;
}
void Point::setY(int y)
{
	this->y = y;
}
void Point::setXY(int x, int y)
{
	this->x = x;
	this->y = y;
}
double Point::getMagnitude() const
{
	return sqrt(x*x + y*y);
}
double Point::getArgument() const
{
	return atan2(x, y);
}
void Point::print() const
{
	cout << "(" << x << "," << y << ")" << endl;
}